import logging
from . import blue_index

@blue_index.route("/")
def index():
    # 会按照string的形式保存，键是一个秘钥；值是存储的信息；默认的key大都是以session: 打头
    # session['name'] = 'itcast' # 测试代码
    logging.log(level=logging.NOTSET, msg='NOTSET')
    logging.log(level=logging.DEBUG, msg='DEBUG')
    logging.log(level=logging.INFO, msg='INFO')
    logging.log(level=logging.WARNING, msg='WARNING')
    logging.log(level=logging.WARN, msg='WARN')
    logging.log(level=logging.WARN, msg='WARN')
    logging.log(level=logging.ERROR, msg='ERROR')
    # logging.log(level=logging.CRITICAL, msg='CRITICAL')
    # 第二中方法
    logging.critical('changeCRITICAL')
    return "index"